#if !defined(__APP_BT_H)
#define __APP_BT_H

#include "app_device.h"

typedef enum {
    BT_BR_9600 = '4',
    BT_BR_115200 = '8'
} BT_BaudRate;

void app_bt_init(Device_t *device);

int app_bt_preWrite(char *data, int len);

int app_bt_postRead(char *data, int len);

int app_bt_status(Device_t *device);

int app_bt_setBaudRate(Device_t *device, BT_BaudRate rate);

int app_bt_rename(Device_t *device, char *name);

int app_bt_setNetid(Device_t *device, char *netid);

int app_bt_setMaddr(Device_t *device, char *maddr);

int app_bt_reset(Device_t *device);


#endif // __APP_BT_H
